// import logo from './logo.svg';
import "./App.css";
import originArr from "./router/routes";
import { createRoutes } from "./router/createRoutes";
import { Routes } from "react-router-dom";
import { useSelector } from "react-redux";
function App() {
  let userRoute = useSelector((state) => {
    console.log(state, "satte");
    return state.userInfo.userRoute;
  });
  console.log(createRoutes(userRoute.concat(originArr)));
  return (
    <div className="App">
      <Routes>{createRoutes(userRoute.concat(originArr))}</Routes>
    </div>
  );
}

export default App;
